package com.ruoyi.project.system.policy_information.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.policy_information.mapper.PolicyInformationMapper;
import com.ruoyi.project.system.policy_information.domain.PolicyInformation;
import com.ruoyi.project.system.policy_information.service.IPolicyInformationService;
import com.ruoyi.common.utils.text.Convert;

/**
 * policy_informationService业务层处理
 * 
 * @author admin
 * @date 2025-04-24
 */
@Service
public class PolicyInformationServiceImpl implements IPolicyInformationService 
{
    @Autowired
    private PolicyInformationMapper policyInformationMapper;

    /**
     * 查询policy_information
     * 
     * @param id policy_information主键
     * @return policy_information
     */
    @Override
    public PolicyInformation selectPolicyInformationById(Long id)
    {
        return policyInformationMapper.selectPolicyInformationById(id);
    }

    /**
     * 查询policy_information列表
     * 
     * @param policyInformation policy_information
     * @return policy_information
     */
    @Override
    public List<PolicyInformation> selectPolicyInformationList(PolicyInformation policyInformation)
    {
        return policyInformationMapper.selectPolicyInformationList(policyInformation);
    }

    /**
     * 新增policy_information
     * 
     * @param policyInformation policy_information
     * @return 结果
     */
    @Override
    public int insertPolicyInformation(PolicyInformation policyInformation)
    {
        return policyInformationMapper.insertPolicyInformation(policyInformation);
    }

    /**
     * 修改policy_information
     * 
     * @param policyInformation policy_information
     * @return 结果
     */
    @Override
    public int updatePolicyInformation(PolicyInformation policyInformation)
    {
        return policyInformationMapper.updatePolicyInformation(policyInformation);
    }

    /**
     * 批量删除policy_information
     * 
     * @param ids 需要删除的policy_information主键
     * @return 结果
     */
    @Override
    public int deletePolicyInformationByIds(String ids)
    {
        return policyInformationMapper.deletePolicyInformationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除policy_information信息
     * 
     * @param id policy_information主键
     * @return 结果
     */
    @Override
    public int deletePolicyInformationById(Long id)
    {
        return policyInformationMapper.deletePolicyInformationById(id);
    }
}
